package entity;

public  class Record {
    protected String date;
    //日期
    protected double amount;
    //金额
    protected String category;
    //类别
    protected String remark;
    //备注
    public Record(String date, double amount, String category, String remark) {
        this.date = date;
        this.amount = amount;
        this.category = category;
        this.remark = remark;
    }
    public Record(){}

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public double getAmount() {
        return amount;
    }

    public String getCategory() {
        return category;
    }

    public String getRemark() {
        return remark;
    }

    @Override
    public String toString() {
        return "日期：" + date + ", 金额：" + amount + ", 类别：" + category + ", 备注：" + remark;
    }
}


